﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class PlayerCheck
{

    public static bool isPlayer(ActiveObject activeObject)
    {
        if (activeObject.getType() == ObjectType.PLAYER)
            return true;
        return false;

    }

    public static ElisActiveObject getElis(ActiveObject activeObject)
    {
        return activeObject.gameObject.GetComponent<ElisActiveObject>();
    }

    public static bool isAttackAble(ActiveObject myself,ActiveObject target)
    {
        if (myself && target && !target.isDead() && myself.getTeam() != target.getTeam())
            return true;
        return false;
    }


}